package com.learn.training.multithread.chapter6.minchapter2.demo1;

public class demo1 {
    public static void main(String[] args) {
        Counter c1 = new Counter();

        new Thread(() -> {c1.add(1);}).start();
        new Thread(() -> {c1.dec(1);}).start();
    }
}
